package com.wangan.wanganpush.services;


import com.wangan.wanganpush.model.BaseEntity;

import java.sql.Timestamp;
import java.util.List;

/**
 * 基类方法
 */
public class BaseImpl<T> {

    public List<?> updateFlag(List<? extends BaseEntity> list){
         if(list.size()==0) return list;

         for(int i=0;i<list.size();i++){
              list.get(i).setFlag(1);
             //时间更新
             list.get(i).setUpdateTime(new Timestamp(System.currentTimeMillis()));
         }
         return list;
    }






}
